package com.lksoft.bz.action;

import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;
import java.io.IOException;

import javax.swing.AbstractAction;
import javax.swing.JOptionPane;

import com.lksoft.bz.Bz;

public class AboutAction extends AbstractAction {
	private static final long serialVersionUID = 5159054803689484645L;
	
	private Bz bz;
	
	/**
	 * @param bz The program
	 * @throws IOException 
	 */
	public AboutAction(Bz bz) throws IOException{
		this.bz = bz;

		putValue(MNEMONIC_KEY, KeyEvent.VK_A);
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		JOptionPane.showMessageDialog(bz.getFrame(), "B'z\n例えば～♫　どうにかして～♫\n\nVersion 0.02\nAuthor: Lake (lakeishikawa@gmail.com)\n\nEnjoy!");
	}
}
